package ilender.mappers;

import ilender.models.*;

/**
 * Base mapper for model of type BaseModel.
 */
public interface BaseMapper<T extends BaseModel>{
	/**Find a model object by id.*/
	public T find(long id);

	/**Insert a new record to the database.*/
	public long insert(T modelObject);

	/**Update an existing record in the database.*/
	public void update(T modelObject);
}

